package homework.HomeWork02;

public class Test {
    public static void main(String[] args) {
        //创建对象
        Breeder b = new Breeder();
        Dog d = new Dog();
        Frog f = new Frog();
        Sheep s = new Sheep();
        //调用方法
        b.breed(d);
        d.swimming();
        b.breed(f);
        f.swimming();
        b.breed(s);
    }
}
